# -*- coding: utf-8 -*-
# Copyright 2023 OpenSPG Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied.

# ATTENTION!
# This file is generated by Schema automatically, it will be refreshed after schema has been committed
# PLEASE DO NOT MODIFY THIS FILE!!!
#

from knext.schema.model.schema_helper import (
    SPGTypeHelper,
    PropertyHelper,
    RelationHelper,
)


class Medicine:
    class BodyPart(SPGTypeHelper):

        name = PropertyHelper("name")
        stdId = PropertyHelper("stdId")
        description = PropertyHelper("description")
        alias = PropertyHelper("alias")
        id = PropertyHelper("id")

    class Disease(SPGTypeHelper):
        class abnormal(RelationHelper):
            shape = PropertyHelper("shape")
            color = PropertyHelper("color")
            range = PropertyHelper("range")

        name = PropertyHelper("name")
        diseaseSite = PropertyHelper("diseaseSite")
        department = PropertyHelper("department")
        description = PropertyHelper("description")
        applicableDrug = PropertyHelper("applicableDrug")
        complication = PropertyHelper("complication")
        commonSymptom = PropertyHelper("commonSymptom")
        id = PropertyHelper("id")

        abnormal = abnormal("abnormal")

    class Drug(SPGTypeHelper):

        name = PropertyHelper("name")
        description = PropertyHelper("description")
        id = PropertyHelper("id")

    class HospitalDepartment(SPGTypeHelper):

        name = PropertyHelper("name")
        stdId = PropertyHelper("stdId")
        description = PropertyHelper("description")
        alias = PropertyHelper("alias")
        id = PropertyHelper("id")

    class Indicator(SPGTypeHelper):

        name = PropertyHelper("name")
        description = PropertyHelper("description")
        id = PropertyHelper("id")

    class Symptom(SPGTypeHelper):

        name = PropertyHelper("name")
        description = PropertyHelper("description")
        id = PropertyHelper("id")

    BodyPart = BodyPart("Medicine.BodyPart")
    Disease = Disease("Medicine.Disease")
    Drug = Drug("Medicine.Drug")
    HospitalDepartment = HospitalDepartment("Medicine.HospitalDepartment")
    Indicator = Indicator("Medicine.Indicator")
    Symptom = Symptom("Medicine.Symptom")

    pass
